(when (version< emacs-version "27.0") 
  (package-initialize))

;;;elpy depends
;pip install jedi flake8 importmagic autopep8

(use-package elpy
  :ensure t
  :init
  (elpy-enable))

(defvar myPackages
  '(better-defaults
    elpy
    flycheck ;; add the flycheck package
    material-theme))


;(when (require 'flycheck nil t)
;  (setq elpy-modules (delq 'elpy-module-flymake elpy-modules))
(add-hook 'elpy-mode-hook 'flycheck-mode)

(pyvenv-deactivate)
(setq elpy-rpc-virtualenv-path 'current)


(defun python_path_src ()
  (interactive)
  (dired-other-window  "/home/zdq/py_work/src") )


(message "init python")
(provide 'init_python)
